(command_loop_1): On entry, set this_command
authorRichard M. Stallman <rms@gnu.org>
Thu, 10 Mar 1994 15:59:22 +0000 (15:59 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 10 Mar 1994 15:59:22 +0000 (15:59 +0000)
after running Vpost_command_hook.

src/keyboard.c

index 7bd709ae1d454fce1472b5e575c528ad8d75a7f1..e07e62be495a6810a06df9aa56bfd974d3623f1a 100644 (file)
@@ -908,7 +908,6 @@ command_loop_1 ()
   nonundocount = 0;
   no_redisplay = 0;
   this_command_key_count = 0;
-  last_command = this_command;
 
   /* Make sure this hook runs after commands that get errors and
      throw to top level.  */
@@ -924,6 +923,9 @@ command_loop_1 ()
       Vpost_command_hook = Vcommand_hook_internal;
     }
 
+  /* Do this after running Vpost_command_hook, for consistency.  */
+  last_command = this_command;
+
   while (1)
     {
       /* Install chars successfully executed in kbd macro.  */